package com.cwz.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cwz.gulimall.product.entity.CategoryEntity;
import com.cwz.gulimall.product.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author shiyi
 * @email 852998448@qq.com
 * @date 2022-11-06 20:41:50
 */
public interface CategoryService extends IService<CategoryEntity> {

    Map<String, List<Catalog2Vo>> getCatalogJson();

    List<CategoryEntity> listWithTree();

    boolean removeMenusByIds(List<Long> asList);

    Long[] getCategoryPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();
}

